package com.kantboot.business.ac.domain.ao;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

@Data
public class YrApiProductInAO implements Serializable {

    /**
     * 产品IN类型id
     */
    @JSONField(ordinal = 1)
    private Long id;

    /**
     * 产品IN名称
     */
    @JSONField(ordinal = 2)
    private String name;

    /**
     * 产品IN的yname
     */
    @JSONField(ordinal = 3)
    private String yname;

    /**
     * 产品IN的cateName
     */
    @JSONField(ordinal = 4)
    private String cateName;

    /**
     * 产品IN的cateId
     */
    @JSONField(ordinal = 5)
    private Long cateId;

    private Long cate_id;

    public void setCate_id(Long cate_id) {
        this.cate_id = cate_id;
        this.setCateId(cate_id);
    }


    private String cate_name;

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
        this.setCateName(cate_name);
    }

    @JSONField(ordinal = 5)
    private String type;

    @JSONField(ordinal = 6)
    private String typeName;

    private String type_name;

    /**
     * 价格
     */
    @JSONField(ordinal = 7)
    private Double price;

    /**
     * 成本价
     */
    @JSONField(ordinal = 8)
    private Double costPrice;

    public void setPrice(Double price) {
        this.price = price;
        this.setCostPrice(price);
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
        this.setTypeName(type_name);
    }
}
